<?php

////////////////////////////////////////////////////////////////////////////////////////////////////
//
// phpBBnews
// =========
//
// Copyright (C) 2007 mgsninja
// Some functions are taken from phpBB 2 and are copyright (C) 2001 The phpBB Group
// The changes of these are copyright (C) 2007 mgsninja
//
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
////////////////////////////////////////////////////////////////////////////////////////////////////


/**
 * Config: General
 */
$pbn['General_phpBB2Path'] = 'forums/'; // Path to forum from the srcipt

/**
 * Config: Database
 */
$pbn['DB_phpBB2config'] = 'Off';       // Use the phpBB2 config file? 'Yes' or 'No'
$pbn['DB_System']       = 'mysql';     // What kind of database system.
$pbn['DB_Host']         = 'localhost'; // Where the database is.
$pbn['DB_Name']         = 'forums';    // Your database name
$pbn['DB_UserName']     = 'root';      // Your username.
$pbn['DB_Password']     = '';          // Your password.
$pbn['DB_TablePrefix']  = 'phpbb_';    // Table Prefix used for phpBB2.

/**
 * Config: News
 */
$pbn['News_Forum']     = 1;                // Forum ID of your News forum.
$pbn['News_Limit']     = 10;               // How many headlines to show.
$pbn['News_Length']    = 0;                // How much of a new should we show. 0 is no limit.
$pbn['News_Quote']     = 'Quote';          // Quote. Change to your language.
$pbn['News_Wrote']     = 'wrote';          // "name" wrote. Change to your language.
$pbn['News_Code']      = 'Code';           // Code. Change to your language.
$pbn['News_Comment']   = 'Comment';        // 1 comment. Change to your language.
$pbn['News_Comments']  = 'Comments';       // 0, 2 or more comments. Change to your language.
$pbn['News_LocalTime'] = 3600;             // Time to add to the date
$pbn['News_Date']      = 'd. of F Y, H:i'; // PHP Date() function

/**
 * Config: Smilies
 */
$pbn['Smilies_code'] = 'On'; // Turn smilies into images. Can be 'On' or 'Off'

/**
 * Config: BBCode
 */
$pbn['BBCode_code']  = 'On'; // [code]  can be 'On' or 'Off'
$pbn['BBCode_quote'] = 'On'; // [quote] can be 'On' or 'Off'
$pbn['BBCode_list']  = 'On'; // [list]  can be 'On' or 'Off'
$pbn['BBCode_color'] = 'On'; // [color] can be 'On' or 'Off'
$pbn['BBCode_size']  = 'On'; // [size]  can be 'On' or 'Off'
$pbn['BBCode_b']     = 'On'; // [b]     can be 'On' or 'Off'
$pbn['BBCode_u']     = 'On'; // [u]     can be 'On' or 'Off'
$pbn['BBCode_i']     = 'On'; // [i]     can be 'On' or 'Off'
$pbn['BBCode_img']   = 'On'; // [img]   can be 'On' or 'Off'
$pbn['BBCode_url']   = 'On'; // [url]   can be 'On' or 'Off'
$pbn['BBCode_email'] = 'On'; // [email] can be 'On' or 'Off'

/****************************************************************************************************
 * End Config :: Do NOT edit anything after this point.                                             *
 ****************************************************************************************************/

/**
 * Set values
 */
if($pbn['DB_phpBB2config'] == 'On')
{
	include($pbn['General_phpBB2Path'].'config.php');
	$pbn['DB_System']      = $dbms;
	$pbn['DB_Host']        = $dbhost;
	$pbn['DB_Name']        = $dbname;
	$pbn['DB_UserName']    = $dbuser;
	$pbn['DB_Password']    = $dbpasswd;
	$pbn['DB_TablePrefix'] = $table_prefix;
}

?>